package com.richper.springcloudh2020.service.fallback;

import com.richper.springcloudh2020.service.HystrixOrderService;
import org.springframework.stereotype.Component;

@Component
public class HystrixOrderFallBack implements HystrixOrderService {
    @Override
    public String payment_ok() {
        return Thread.currentThread().getName()+"  payment_ok-8005服务宕机请稍后再试,  ┭┮﹏┭┮";
    }

    @Override
    public String payment_timeOut() {
        return Thread.currentThread().getName()+"  payment_timeOut-8005服务宕机请稍后再试,  ┭┮﹏┭┮";
    }

    @Override
    public String div(int id) {
        return Thread.currentThread().getName()+"  div-8005服务宕机请稍后再试,  ┭┮﹏┭┮";
    }
}
